home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Tracker Coordinates.4 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Tracker Coordinates
  2. Sent:        6/6/96 3:18 PM
  3. Received:    6/6/96 3:42 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I don't know if this is related to the problem Bill Finzer does experience,
  9. >but there is indeed a bug in FW_CTracker::Track, which applies
  10. >FrameToViewContent to all views, not only the content view. This is
  11. >incorrect since views other than the content view should not be affected by
  12. >the internal transform.
  13. >
  14. >ODFDraw is not affected by this problem because it only tracks the content 
  15. >view.
  16. >
  17. >Serge
  18. >
  19.  
  20. Yes indeed. I was looking at our current code and not ODF Release 1. This 
  21. is a bug discovered by Serge and it is fixed in our current code. The 
  22. following lines in FW_CTracker::Track should be changed from:
  23.  
  24. frame->GetContentView(ev)->FrameToViewContent(ev, where);
  25. fAnchorPoint = BeginTracking(ev, where);
  26.  
  27.  
  28. to
  29.  
  30. GetView(ev)->FrameToViewContent(ev, where);
  31. fAnchorPoint = BeginTracking(ev, where);
  32.  
  33.  
  34. The tracker should use the tracker's view not the content view.
  35.  
  36. Thanks to Serge.
  37.  
  38. ........................................................................
  39.  Henri Lamiraux                                      lamiraux@apple.com
  40.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  41. ........................................................................
  42.  
  43.